layui.define(['jquery','slick','viewer'],function(exports){
	var modelName = 'list';
	var  $ = layui.jquery;
	var viewer = layui.viewer;
	layui.link('./js/lib/viewer.min.css');
	layui.link('./js/lib/slick.css').link('./js/lib/slick-theme.css');;
	$doc.on('click','#nav-btn',function(){
		$("#menus").stop().toggle(300);
		$('body').stop().toggleClass('hide')
	})
	$(".slider-for").slick({
		slidesToShow: 1,
	  slidesToScroll: 1,
	  arrows: false,
	  fade: false,
	  asNavFor: '.slider-nav'
	})
	$('.slider-nav').slick({
	  slidesToShow: 3,
	  slidesToScroll: 1,
	  asNavFor: '.slider-for',
	  dots: false,
	  centerMode: false,
	  focusOnSelect: true,
	  arrows: true,
	  prevArrow:'<div class="arrow arrow-left"><i class="layui-icon layui-icon-left" ></i></div>',
	  nextArrow:'<div class="arrow arrow-right"><i class="layui-icon layui-icon-right" ></i></div>'
	});
	var viewer = new Viewer(document.getElementById('house-type'), {
		url: 'data-src',
		navbar:false,
		toolbar:false
	});
	
	exports(modelName)
})